﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Drawing;
using System.Windows.Forms;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Logic.POI;

namespace HarmoniousVigor
{
    public partial class Warlock
    {
        public bool demonologyCombat()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (demonologyPVPCombat())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (demonologyDungeonCombat())
                    return true;
            }
            else
            {
                if (demonologyQuestingCombat())
                    return true;
            }

            return false;
        }
        public bool demonologyHeal()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (demonologyPVPHeal())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (demonologyDungeonHeal())
                    return true;
            }
            else
            {
                if (demonologyQuestingHeal())
                    return true;
            }

            return false;
        }
        public bool demonologyBuff()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (demonologyPVPBuff())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (demonologyDungeonBuff())
                    return true;
            }
            else
            {
                if (demonologyQuestingBuff())
                    return true;
            }

            return false;
        }
        public bool demonologyPullSpell()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (demonologyPVPPullSpell())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (demonologyDungeonPullSpell())
                    return true;
            }
            else
            {
                if (demonologyQuestingPullSpell())
                    return true;
            }

            return false;
        }
    }
}
